#include <QtGui/QApplication>
#include "mainwindow.h"
#include <iostream>
#include "champdata.h"

using namespace std;

int main(int argc, char *argv[])
{
    string champname;

    QApplication a(argc, argv);
    MainWindow w;
//    w.show();
    a.exec();
    champname = w.m_name.toStdString();
//    cout << w.m_name.toStdString() << endl;
    cout << champname << endl;

    if(IsChamp(champname))
    {
        champname = DEFAULT;
    }//end if

//    return a.exec();
    return 0;
}
